package cn.hallele.ms.portalcenter.integration.action.datadict;

import cn.hallele.infrastructure.metadata.io.Page;
import cn.hallele.mc.sdk.configcenter.dto.DataDictTypeDTO;
import cn.hallele.mc.sdk.configcenter.dto.DataDictTypeQueryDTO;
import cn.hallele.mc.sdk.configcenter.feign.DataDictFeign;
import cn.hallele.ms.infrastructure.util.OutGoingUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * hallele_ms_portalcenter
 *
 * @author anle5
 * @since 2025/3/9 17:04
 */
@Slf4j
@Service
public class DataDictIntegrationService {
    @Autowired
    private DataDictFeign dataDictFeign;


    /**
     * 分页查询部门信息
     *
     * @param condition 查询条件
     * @return 部门信息
     */
    public Page<DataDictTypeDTO> getDataDictTypes(DataDictTypeQueryDTO condition) {
        return OutGoingUtil.getData(dataDictFeign.getDataDictTypes(condition));
    }
}
